package com.rpj.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.rpj.entity.Book;
import com.rpj.entity.BookDto;


public interface BookService {
	List<Book> query();
	//修改
	int updateBook(String bookname,String bookauthor,String bookpress,String booknum,String bookcate,String bookmessage,String bookprice,String bookaddress,String onlinenum,String borrownum,String bookid);
	//添加
	Book save(Book b);
	/**
	 * 多条件分页查询
	 */
	public Page<Book> queryByCondition(BookDto dto,Pageable pageable);
	//查询出版社
	List<String>  bookpress();
}
